<%@ page language="java" import="java.util.*,com.cbx.dao.*,com.pro.bean.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    	<meta charset="utf-8" />
	<link href="../css/bootstrap.css" rel="stylesheet">
	<link rel="stylesheet" href="../css/main.css">
	<link rel="stylesheet" href="../css/datepicker.css">

	<script src="../js/jquery.js"></script>
	<script src="../js/bootstrap.min.js"></script>
	<script src="../js/bootstrap-datepicker.js"></script>
	<title>浏览日志</title>


<script language="javascript">
$(function(){
	$("#search1").click(function(){
		$("#search1").datepicker({
			format:'yyyy-mm-dd'
		});
	});
	$("#search2").click(function(){
		$("#search2").datepicker({
			format:'yyyy-mm-dd'
		});
	});
});


</script>
<script type="text/javascript">
function ff(){

		$("#tablediv").attr("src","<%=basePath%>servlet.visitServlet");
	//$.ajax({
   // type:"post",
    //url:"",
   // data:$("#search").serialize(),
    //success:function(datas){
    //$("#tablediv").html(datas);
    //}
    
  //  });
}

</script>
  </head>
  
  <body>


<form name="search" id="search" action="<%=basePath%>servlet.visitServlet" method="post" >  



<div id="bodydiv" style="width:900px;margin:auto;">
	

		<div id="viewdiv" style="background-color:#efefef;height:140px">
			<p>
				<strong>浏览日志检索</strong>
			</p>
			<p></p>

			<div style="width:400px;float:left">
				<p>
					<span>公司名称:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
					
					<input type="text" name="cmp" value"=" " />
                          
				</p>
				
				
				
				<p>
					<span>名片姓名:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
					
					<input type="text" name="firstname" value"=" " />
					
				</p>
				
				
				
				<p>
					<span>访问者姓名:&nbsp;&nbsp;</span>
					
					<input type="text" name="username" value"=" "/>

				</p>
			</div>

			<div style="width:410px;float:right">
				<p>
					<span>检索日期: </span> 
					
				<input style="width:95px" type="text" name="visittime1" id="search1" value"=" " />
				<span>--</span> 
				<input style="width:95px" type="text" name="visittime2" id="search2" value"=" " />
                  &nbsp;&nbsp;&nbsp;&nbsp;
					<button type="button" onclick="ff()" class="btn btn-primary btn-sm">&nbsp;检索&nbsp;</button>
				</p>
			</div>
		</div>
		<hr></hr>


		<iframe id="tablediv" 
				name="cc" width="900px" height="500px" frameborder="no" >
		</iframe>

		</div>

</form>

  </body>
</html>
